package com.ittest.service.impl;

import com.ittest.dao.RoleDao;
import com.ittest.domain.Role;
import com.ittest.service.RoleService;

import java.util.List;

public class RoleServiceImpl implements RoleService {


    private RoleDao reloDao;

    public void setReloDao(RoleDao reloDao) {
        this.reloDao = reloDao;
    }

    @Override
    public List<Role> list() {
        List<Role> roleList = reloDao.findAll();
        return roleList;
    }

    @Override
    public void save(Role role) {
       reloDao.save(role);
    }
}
